package com.feri.ssm.service.intf;


import com.feri.ssm.entity.Pet;
import com.feri.ssm.vo.PageVo;
import com.feri.ssm.vo.R;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PathVariable;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface PetService {
    /**
     * 新增操作*/
    R save(Pet pet);
    /**
     * 删除操作*/
    R del(int id);
    /**
     * 修改操作*/
    R update(Pet pet);
    /**
     * 查询操作*/
    PageVo selectAll(int page, int limit);

    /**
     * 查询*/
    PageVo selectAll2(String name, String msgName, Integer page, Integer limit);

    /**
     * 数据导出，下载数据*/
    void exportData(HttpServletResponse response) throws IOException;
}
